package rolesystem.jade;


import java.io.Serializable;

/**
 * This class represents a message exchanged between the wrapper layer of
 * agents and the server agent.
 */
public class RoleMsg implements Serializable
{
	/**
	 * Scope of this message.
	 * 0 refers to system scope, other numbers refer to the corresponding
	 * registrations.
	 */
	private int scope;

	/**
	 * Content of this message.
	 */
	private Serializable content;


	/**
	 * Constructor with no arguments, for serializability.
	 */
	private RoleMsg()
	{
	}

	
	/**
	 * @param scope Scope of this message; 0 refers to system scope, other
	 * numbers refer to the corresponding registrations.
	 * @param content Content of this message.
	 */
	public RoleMsg(int scope, Serializable content)
	{
		this.scope=scope;
		this.content=content;
	}


	/**
	 * Returns the scope of this message.
	 * @return The scope of this message; 0 refers to system scope, other
	 * numbers refer to the corresponding registrations.
	 */
	public int getScope()
	{
		return scope;
	}


	/**
	 * Returns the content of this message.
	 * @return The content of this message.
	 */
	public Serializable getContent()
	{
		return content;
	}
}
